//index.js
//获取应用实例
const app = getApp()
const Pager = require('components/aotoo/core')
Pager({
  data: {
    pages: Pager.list({
      header: {
        title: [
          {title: '类型一：数据从进入页面后就已经全部加载完；'},
          {title: ' 类型二：数据通过点击（第一次），再加载出来，并缓存。'}
        ],
        itemClass: 'tag-display size-sm p-primary mb-default'
      },
      data: [{title: '类型一', aim: 'onItem?id=1', itemClass: 'icon-after-toggle al-item-center'},{title: '类型二', aim: 'onItem?id=2', itemClass: 'icon-after-toggle al-item-center'}],
      itemClass: 'item-rc no-plr color-title',
    }),
  },
  onItem(e, params, inst) {
    const id = params.id
    wx.navigateTo({
      url: './demo'+id+'/index'
    })
  },
  onShow: function () {},

  onReady: function () {
  },
  onLoad: function () {},
})
